import AsyncComponent from "../components/AsyncComponent";//按需加载
const home =  AsyncComponent(() => import("../pages/foot/home"));  //异步引入文件;
const stuff = AsyncComponent(() => import("../pages/foot/stuff"));  //异步引入文件
const contact = AsyncComponent(() => import("../pages/foot/contact")); //异步引入文件
const connect = AsyncComponent(() => import("../pages/foot/userList")); //异步引入文件

const user = AsyncComponent(() => import("../pages/user/index")); //异步引入文件
const test = AsyncComponent(() => import("../pages/test/index")); //异步引入文件
const my = AsyncComponent(() => import("../pages/test/my")); //异步引入文件
const high = AsyncComponent(() => import("../pages/test/high")); //异步引入文件
const high1 = AsyncComponent(() => import("../pages/test/high1")); //异步引入文件
const refs = AsyncComponent(() => import("../pages/test/refs")); //异步引入文件
const refs1 = AsyncComponent(() => import("../pages/test/refs1")); //异步引入文件
export default [
    { path: "/", name: "Home", component: home,title:"首页"},
    { path: "/stuff", name: "Stuff", component: stuff,auth: true,title:"stuff"},
    { path: "/contact", name: "Contact", component: contact,title:"contact"},
    { path: "/connect", name: "Connect", component: connect,title:"connect"},
    { path: "/user", name: "user", component: user,title:"user"},
    { path: "/test", name: "user", component: test,title:"test"},
    { path: "/test/my", name: "my", component: my,title:"my"},
    { path: "/test/high", name: "high", component: high,title:"HOC高阶例子1"},
    { path: "/test/high1", name: "high1", component: high1,title:"HOC高阶例子2"},
    { path: "/test/refs", name: "refs", component: refs,title:"refs"},
    { path: "/test/refs1", name: "refs1", component: refs1,title:"refs1"},
]
